/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('swiper', {
    id: {
      type: DataTypes.INTEGER(11).UNSIGNED,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    imgurl: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ''
    },
    naviurl: {
      type: DataTypes.STRING(50),
      allowNull: false,
      defaultValue: ''
    },
    createdAt: {
      type: DataTypes.DATE,
      allowNull: false,
      defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
    },
    updatedAt: {
      type: DataTypes.DATE,
      allowNull: false,
      defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
    },
    chk_status: {
      type: DataTypes.INTEGER(1),
      allowNull: false,
      defaultValue: '1'
    }
  }, {
    tableName: 'swiper'
  });
};
